<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        for(var i=100;i<=999;i++){
            var num,a,b,c;
            a = parseInt(i/100);
            b = parseInt(i/10)%10; 
            c = i%10;
            num = a*a*a+b*b*b+c*c*c;
            if(num == i){
                document.write(i+" ");
            }
        }
    </script>
</body>
</html>